package cn.ilikes.tools.hbase.jpa.metadatas.elements;

public class JPAFieldImpl implements JPAField {

	private String columnName;

	private Relation relation;

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	@Override
	public Relation getRelation() {

		return relation;
	}

	public boolean isRelation() {
		if (relation != null)
			return true;
		else
			return false;
	}

	public void setRelation(Relation relation) {
		this.relation = relation;
	}

	@Override
	public boolean isColumnName() {

		return (columnName != null && !columnName.isEmpty());
	}

}
